// ActionScript file
import com.firemoss.magicbus.messaging.fillter.BeforeFilterChain;
import com.firemoss.magicbus.messaging.fillter.FaultFilterChain;
import com.firemoss.magicbus.messaging.fillter.ResponseFilterChain;
import com.firemoss.magicbus.messaging.fillter.ResultFilterChain;

public var beforeChain : BeforeFilterChain
public var responseChain : ResponseFilterChain
public var resultChain : ResultFilterChain
public var faultChain : FaultFilterChain

public function set beforeFilters( value : Object ) : void
{
	if ( !value ) return
	
	if ( !( value is Array ) ) { value = [ value ] }
	
	beforeChain = new BeforeFilterChain( value as Array )
}

public function set responseFilters( value : Object ) : void
{
	if ( !value ) return
	
	if ( !( value is Array ) ) { value = [ value ] }
	
	responseChain = new ResponseFilterChain( value as Array )
}

public function set resultFilters( value : Object ) : void
{
	if ( !value ) return
	
	if ( !( value is Array ) ) { value = [ value ] }
	
	resultChain = new ResultFilterChain( value as Array )
}

public function set faultFilters( value : Object ) : void
{
	if ( !value ) return
	
	if ( !( value is Array ) ) { value = [ value ] }
	
	faultChain = new FaultFilterChain( value as Array )
}